# MAKEFILE
# ROVER SIDE

APP = camera release
CC = g++

CAMERA_FILES = camera.cpp
CAMERA_OUTPUT = camera

GL_LIBS = -lGL -lglut -lGLU
OPENCV_LIBS = -lopencv_core -lopencv_highgui -lopencv_imgproc

#LIBS += $(GL_LIBS)
LIBS += $(OPENCV_LIBS)

CFLAGS = -Wall

all: $(APP)

camera: $(CAMERA_FILES)
	$(CC) $(CFLAGS) $(LIBS) -o $(CAMERA_OUTPUT) camera.cpp -I../../../../comm_libs/port_comm/include -L../../../../comm_libs/port_comm/lib -lportcomm -lpthread

release: $(CAMERA_FILES)
	$(CC) $(CFLAGS) $(LIBS) -o release release.cpp -I../../../../comm_libs/port_comm/include -L../../../../comm_libs/port_comm/lib -lportcomm

clean:
	rm -rf $(CAMERA_OUTPUT) release *~

run:
	./start.sh 6001 6001 rascal.caltech.edu

